/*
 * @Author: xiaoliang
 * @Date: 2025-03-05 14:46:27
 * @LastEditors: xiaoliang
 * @LastEditTime: 2025-03-05 14:46:37
 * @FilePath: /codepiece/sleep1000.js
 * @Description: sleep 1000
 */
function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

// 使用示例
sleep(1000).then(() => {
  console.log('唤醒');
});